<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>

<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>-</title>


    <link type="text/css" href="<%=basePath%>static/sub/assets/css/vendor-morris.css" rel="stylesheet">
    <link type="text/css" href="<%=basePath%>static/sub/assets/css/vendor-bootstrap-datepicker.css" rel="stylesheet">

    <!-- Prevent the demo from appearing in search engines -->
    <meta name="robots" content="noindex">

    <!-- App CSS -->
    <link type="text/css" href="<%=basePath%>static/sub/assets/css/app.css" rel="stylesheet">
    <link type="text/css" href="<%=basePath%>static/sub/assets/css/app.rtl.css" rel="stylesheet">

    <!-- Simplebar -->
    <link type="text/css" href="<%=basePath%>static/sub/assets/vendor/simplebar.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/2.1.4/jquery.js"></script>
<link rel="stylesheet"
	href="//cdn.datatables.net/1.10.15/css/jquery.dataTables.min.css">
<script src="//cdn.datatables.net/1.10.15/js/jquery.dataTables.min.js"></script>

<link rel="stylesheet" href="<%=basePath%>static/animate.css">
<script src="<%=basePath%>static/js1.js" charset="utf-8"></script>
<style>
body {
	overflow-x: hidden
}

body::-webkit-scrollbar { /*滚动条整体样式*/
	width: 5px; /*高宽分别对应横竖滚动条的尺寸*/
	height: 1px;
}

body::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
	background: #EEE;
}

body::-webkit-scrollbar-track { /*滚动条里面轨道*/
	-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	background: #DDD;
}

.dataTables_filter input {
	border: 1px solid #ddd;
}
</style>

</head>

<body data-type="index">










            <div class="row" style="padding-left:30px;padding-right:30px;">

<div class="tpl-portlet-components">
                <div class="portlet-title">

                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">

                                </div>
                        </div>
                    </div>
<style>
.am-form-group{display:inline-block;width:24%;vertical-align: top}
</style>

                </div>
                <div class="tpl-block ">

                    <div class="am-g tpl-amazeui-form">


                        <div class="am-u-sm-12 am-u-md-12">

                        <form class="am-form am-form-horizontal" action="<%=basePath %>ordertab/ordertab/savekq" method="POST">
                            <div class="am-form-group" style="width:200px;">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">员工</label>
                                    <div class="am-u-sm-9"> <c:if test="${usertype eq 5 }">
                                         <select name="uid">
                                        <c:forEach items="${requestScope.list }" var="u" varStatus="st">
                                        <option value="${u.id }">
                                        ${u.order_id }-${u.buyer }
                                        </option>
                                        </c:forEach>
                                        </select>
                                        </c:if>
                                         <c:if test="${usertype ne 5 }">
                                         <input name="uid" type="hidden" value="${userid }">
                                         ${username }
                                         </c:if>

                                        <small></small>

                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">考勤信息</label>
                                    <div class="am-u-sm-9">
                                        <input type="radio"  name="rest" checked required placeholder="" value="上班"> 上班
                                        <input type="radio"  name="rest" required placeholder="" value="下班"> 下班
                                        <input type="radio"  name="rest" required placeholder="" value="缺勤"> 缺勤
                                        <input type="radio"  name="rest" required placeholder="" value="迟到"> 迟到
                                        <input type="radio"  name="rest" required placeholder="" value="早退"> 早退
                                        <input type="radio"  name="rest" required placeholder="" value="请假"> 请假
                                        <input type="radio"  name="rest" required placeholder="" value="休假"> 休假

                                        <small></small>
                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">备注</label>
                                    <div class="am-u-sm-9">
                                        <input type="text"  name="describ" required placeholder="">
                                        <small></small>
                                    </div>
                                </div>
                                  <div class="am-form-group">
                                    <div class="am-u-sm-9 am-u-sm-push-3">
                                        <button type="submit" class="am-btn am-btn-primary">点击打卡</button>
                                    </div>
                                </div>
                        </form>


                        <div style="height:50px"></div>



                             <table class="am-table box-shadow am-table-radius am-table-bordered am-table-hover table-main">
                                    <thead>
                                        <tr class="am-success">


                                            <th class="table-title">员工</th>
                                            <th class="table-type">时间</th>
                                            <th class="table-type">考勤信息</th>
                                            <th class="table-type">备注</th>
                                            <th class="table-type">#</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                     <c:forEach items="${requestScope.list1 }" var="u" varStatus="st">
                                           <c:if test="${usertype eq 1  }">
                                     <c:if test="${not  empty user.grade and u.qid eq user.company }">
                                     <tr <c:if test="${u.id%2==0 }"> class="am-primary" </c:if>>
                                             <td>${u.ord.buyer}</td>
                                              <td>${u.created}</td>
                                            <td>${u.rest} </td>
                                            <td>${u.describ} </td>
                                               <td>
                                               <c:if test="${usertype eq 5 }">
                                               <a href="<%=basePath%>ordertab/ordertab/deltest?id=${u.id}&ret=kq">删除</a>
                                               </c:if>
                                               </td>


                                      </tr>
                                      </c:if>

                                        <c:if test="${empty user.grade and    userid eq u.ord.uid }">
                                     <tr <c:if test="${u.id%2==0 }"> class="am-primary" </c:if>>
                                             <td>${u.ord.buyer}</td>
                                              <td>${u.created}</td>
                                            <td>${u.rest} </td>
                                            <td>${u.describ} </td>
                                               <td>
                                               <c:if test="${usertype eq 5 }">
                                               <a href="<%=basePath%>ordertab/ordertab/deltest?id=${u.id}&ret=kq">删除</a>
                                               </c:if>
                                               </td>


                                      </tr>
                                      </c:if>
                                      </c:if>
                                       <c:if test="${usertype ne 1}">

                                     <tr <c:if test="${u.id%2==0 }"> class="am-primary" </c:if>>
                                            <td>${u.ord.buyer}</td>
                                              <td>${u.created}</td>
                                            <td>${u.rest} </td>
                                            <td>${u.describ} </td>
                                               <td>
                                               <c:if test="${usertype eq 5 }">
                                               <a href="<%=basePath%>ordertab/ordertab/deltest?id=${u.id}&ret=kq">删除</a>
                                               </c:if>
                                               </td>


                                      </tr>
                                      </c:if>

                                     </c:forEach>


                                        </tr>
                                    </tbody>
                                </table>


                        </div>
                    </div>
                </div>

            </div>
    </div>    </div>



    <script src="<%=basePath %>static/assets/js/jquery.min.js"></script>
    <script src="<%=basePath %>static/assets/js/amazeui.min.js"></script>
    <script src="<%=basePath %>static/assets/js/iscroll.js"></script>
    <script src="<%=basePath %>static/assets/js/app.js"></script>
    <script src="<%=basePath %>static/layer/layer.js"></script>
  <c:if test="${!empty message}">
			<script>
			 var btn = $("#showMsgBtn", window.parent.document);
		       var msg = $("#msg", window.parent.document);
		       $(msg).val("${message}");
		       $(btn).click();
			//layer.alert("${message}",{icon: 1});
			setTimeout(function(){
				location.href="<%=basePath%>ordertab/ordertab/kq";
			}, 1000)
			</script>
		</c:if>


</body>

</html>
